<?php
/*
 * 评论页
 * @package    auto
 * @author     Sameal
 * @copyright  Copyright (c) 2013 ixdcw team
 * @version
 */
defined('IN_IXDCW') or exit('Access Denied');
require_once DT_CORE."/{$module}/common.inc.php";

// header
$headerPart = 'comment';
require_once MD_ROOT . '/header.inc.php';

//include load('autoComment.lang');

$do = new AutoCarComment();

if($modelId){
	$items=$do->getCount($modelId,$carId);
	if($items){
		$tags=$do->getList($modelId,$carId);
	}else{
		include template('nocomment', 'message');
		exit;
	}
}else{
	$items=$do->getCount($modelId,$carId);
	if($items){
	$tags=$do->getList($modelId,$carId);
	}else{
		include template('nocomment', 'message');
		exit;
	}

}

include template('carCommentShow', $module);
